package com.woniuxy.service.impl;

import com.woniuxy.entity.User;
import com.woniuxy.mapper.UserMapper;
import com.woniuxy.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getLoginUser(String account) {

        User finduser = userMapper.selectUserByAccount(account);

        return finduser;
    }

    @Override
    public User findByUid(int getuid) {
        return userMapper.findByUid(getuid);
    }

}
